<template>
    <div class="content white-block settle-sub-box">
        <breadcrumb :title="'儿科（1-7病区）'"></breadcrumb>
        <div class="roomNo">1床-3床</div>
        <div class="detail mt20 clearfix">
            <div class="bed-info">
                <div class="title">1床</div>
                <div class="patient clearfix">
                    <div class="img">
                        <el-image
                            fit="contain"
                            src="/static/images/statistic-1.png">
                        </el-image>
                    </div>
                    <div class="info">
                        <div>姓名：张三</div>
                        <div>住院号：112233</div>
                    </div>
                </div>
                <div class="relation">
                    <div class="head">
                        <div class="operate">
                            <!--                            <el-link type="primary" :underline="false"></el-link>-->
                            <el-link type="primary" :underline="false"><i class="el-icon-plus"></i></el-link>
                        </div>
                        陪护人员
                    </div>
                    <div class="list">
                        <div class="clearfix">
                            <div class="btn">
                                <!--                                <el-link type="primary" :underline="false">设为陪护</el-link>-->
                                <el-link type="primary" :underline="false">解除绑定</el-link>
                            </div>
                            <span class="state">正在陪护</span>
                            张三
                        </div>
                        <div class="clearfix">
                            <div class="btn">
                                <el-link type="primary" :underline="false">设为陪护</el-link>
                                <el-link type="primary" :underline="false">解除绑定</el-link>
                            </div>
                            李四
                        </div>
                        <div class="clearfix">
                            <div class="btn">
                                <el-link type="primary" :underline="false">设为陪护</el-link>
                                <el-link type="primary" :underline="false">解除绑定</el-link>
                            </div>
                            王武
                        </div>
                    </div>
                </div>
                <div class="visitor">
                    <div class="head">
                        <div class="operate">
                            <!--                            <el-link type="primary" :underline="false"><i class="el-icon-plus"></i></el-link>-->
                        </div>
                        探视人员
                    </div>
                    <div class="list">
                        <div>
                            <span class="state">已探视</span>
                            探视1
                        </div>
                        <div>
                            <span class="state">已探视</span>
                            探视2
                        </div>

                        <div>
                            <span class="state error">未探视</span>
                            探视3
                        </div>
                    </div>
                </div>
            </div>
            <div class="bed-info">
                <div class="title">2床</div>
                <div class="empty">
                    <el-image
                        fit="contain"
                        src="/static/images/map-bed.png"
                        class="img">
                    </el-image>
                    <div class="link">
                        <el-link type="primary" :underline="false">分配病床</el-link>
                    </div>
                </div>
            </div>
            <div class="bed-info">
                <div class="title">3床</div>
                <div class="empty">
                    <el-image
                        fit="contain"
                        src="/static/images/map-bed.png"
                        class="img">
                    </el-image>
                    <div class="link">
                        <el-link type="primary" :underline="false">分配病床</el-link>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    import breadcrumb from '../components/breadcrumb'

    export default {
        data() {
            return {}
        },
        mounted() {
        },
        methods: {},
        components: {
            breadcrumb
        }
    }
</script>

<style scoped lang="less">
    .content {
        background-color: #fff;
    }

    .roomNo {
        font-weight: bolder;
        font-size: 18px;
    }

    .detail {
        /*padding: 0 20px;*/
        width: 1200px;
        height: 642px;
        position: relative;
        margin-left: -50px;

        .bed-info {
            width: 330px;
            height: 516px;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 0 6px -1px rgba(0, 0, 0, .2);
            margin-left: 50px;
            float: left;

            .title {
                line-height: 60px;
                text-align: center;
                font-size: 18px;
                font-weight: bolder;
            }

            .empty {
                text-align: center;
                margin-top: 35px;
                position: relative;
                height: 290px;

                .link {
                    position: absolute;
                    top: 0;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    line-height: 290px;

                    .el-link {
                        /*font-weight: bolder;*/
                        color: #428CFF;
                        font-size: 18px;
                    }
                }
            }

            .patient {
                text-align: center;
                margin-bottom: 40px;
                margin-top: 25px;

                > div {
                    display: inline-block;
                    height: 62px;
                    line-height: 32px;
                    vertical-align: middle;
                }

                .info {
                    text-align: left;
                    margin-left: 15px;
                    color: #999;
                }
            }

            .relation, .visitor {
                height: 160px;

                .head {
                    padding: 10px;
                    line-height: 20px;

                    .operate {
                        float: right;
                    }
                }

                .list {
                    line-height: 24px;
                    /*font-size: 12px;*/
                    color: #999;
                    height: 120px;
                    overflow-y: auto;

                    > div {
                        background-color: #F2F2F2;
                        padding: 0 10px;
                        margin-bottom: 5px;

                        &:last-child {
                            margin-bottom: 0;
                        }
                    }

                    .state {
                        font-size: 12px;
                        border: 1px solid #428CFF;
                        color: #428CFF;
                        display: inline-block;
                        vertical-align: top;
                        line-height: 18px;
                        margin-top: 2px;
                        width: 56px;
                        text-align: center;

                        &.error {
                            color: #FF6B59;
                            border-color: #FF6B59;
                        }
                    }
                }
            }

            .relation {
                margin-bottom: 5px;

                .list {
                    .btn {
                        float: right;
                        font-size: 0;

                        .el-link {
                            font-size: 12px;

                            & + .el-link {
                                margin-left: 5px;
                            }
                        }
                    }
                }
            }
        }
    }
</style>
